/**
 * User: alesj
 * Date: 15.1.2006
 * Time: 14:36:16
 * 
 * (C) Genera Lynx d.o.o.
 */

package com.alesj.blueberry.spring.validation;

import com.alesj.blueberry.spring.result.DefaultResult;

/**
 * @author <a href="mailto:ales.justin@genera-lynx.com">Ales Justin</a>
 */
public class ValidationResult extends DefaultResult {

    public ValidationResult(String key) {
        super(key);
    }

    public ValidationResult(String key, Object[] args) {
        super(key, args);
    }

    public String toString() {
        StringBuffer buffer = new StringBuffer("VR [" + getKey() + "]");
        if (getArgs() != null) {
            for(Object arg : getArgs()) {
                buffer.append(" ").append(arg);
            }
        }
        return buffer.toString();
    }

}
